#include <iostream>

using namespace std;

int a, b;
int main()
{
	while (cin >> a >> b)
	{
		if (a == 0 && b == 0) break;

		int noCarry = 0;
		int carry = 0;
		while ((a != 0) || (b != 0))
		{
			int da = a % 10;
			int db = b % 10;
			a /= 10;
			b /= 10;
			if (da + db + carry > 9)
			{
				noCarry++;
				carry = 1;
			}
			else carry = 0;
		}

		if (noCarry == 0) cout << "No carry operation." << endl;
		else 
			if (noCarry == 1) cout << "1 carry operation." << endl;
			else cout << noCarry << " carry operations." << endl;
	}
	return 0;
}

